package com.system.healthproject.service;

import com.system.healthproject.common.ApiResult;
import com.system.healthproject.model.admin.paramsbean.MenuParams;
import com.system.healthproject.model.admin.paramsbean.RoleAddMenusParams;
import com.system.healthproject.model.admin.paramsbean.RoleParams;
import com.system.healthproject.pojo.Menu;
import com.system.healthproject.pojo.Role;

import java.util.List;

public interface RoleService {

    Boolean roleAddAllMenu(Integer roleId);

    Boolean roleAddMenu(Integer roleId,Integer menuId);

    Boolean addUserRole(Integer userId, Integer roleId);

    Boolean roleAddMenus(RoleAddMenusParams role);

    Boolean roleDeleteMenus(RoleAddMenusParams role);


    List<Role> getRoleList();

    List<Menu> getAllMenu();

    Boolean addRole(RoleParams role);

    Boolean addMenu(MenuParams role);

    Boolean userChangeRole(Integer userId,Integer roleId);

    Boolean changeMenu(Menu menu);

    Boolean changRole(Role role);

    List<Menu> getMenuByRole(Integer roleId);

    List<Menu> selectMenuByName(Menu name);

    boolean deleteMenu(Integer menuId);

    ApiResult<Object> deleteRoleById(Integer roleId);

}
